<?php

namespace app\admin\controller;

use think\Db;
use think\Request;

class Wechat extends Common
{
    // 次卡编辑
    public function reply()
    {
        if (request()->isPost()) {
            $data = input('post.');
            return model('WeixinReply')->commonData($data, '修改成功!', '修改失败，请重试!');
        } else {
            $id = input('id');
            $list = db('weixin_reply')->where(['id' =>1])->find();
            return $this->fetch('', ['list' => $list]);
        }
    }

    
    public function set(){
        
        header('Location: /meum/index.html');exit;
        
    }
    

}
